from ubuntu:xenial-20210804

run apt-get update

# 安装相关工具
run apt-get install git exuberant-ctags ncurses-term -y

# 安装python
run apt-get install python3-dev libncurses5-dev python3 -y

# 安装编译工具
run apt-get install gcc libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev ruby-dev lua5.1 liblua5.1-dev libperl-dev -y
# 安装vim
workdir /opt/downloads/
run git clone https://github.com/vim/vim
workdir /opt/downloads/vim
run ./configure --with-features=huge \
 --enable-multibyte \
 --enable-luainterp \
 --enable-rubyinterp \
 --enable-pythoninterp \
 --enable-python3interp=dynamic \
 --enable-perlinterp \
 --enable-cscope \
 --enable-tclinterp \
 --enable-gui=gtk3 \
 --with-python-config-dir=/usr/bin/python3 \
 --with-x \ 
 --with-tlib=ncurses \
 --with-gnome
run make && make install

add ./plug.vim /root/.vim/autoload/plug.vim

workdir /opt/projects/
